aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-09-23 16:27:45 +0100
committerMichael Williamson <mike@zwobble.org>2023-09-23 16:27:45 +0100
commit805abe0ba33875a0278c4a0c6e8fa76853fbd703 (patch)
treecc1957adfe4b3e4168747b8536a321a379bf712c /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent121bb5c7e3d141d6baade166e42b58fef7c59c1c (diff)
Extract Patio code gen for tuples
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected16
1 files changed, 8 insertions, 8 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index d725544c..cd70b0de 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -2,25 +2,26 @@ Compilation unit elements:
Locals:
- * (val "tuplePointer__0" data-ptr)
* (val "tupleElement__2__0" int)
* (val "tupleElement__1__0" int)
* (val "tupleElement__0__0" int)
+ * (val "tuplePointer__0" data-ptr)
* (val "tuple__0" int)
Instructions:
(
- (alloc-heap (local "tuplePointer__0") (struct (int int int)))
(local-store (local "tupleElement__2__0") (local "d"))
+ (local-store (local "tupleElement__1__0") (local "c"))
+ (local-store (local "tupleElement__0__0") (local "b"))
+ (alloc-heap (local "tuplePointer__0") (struct (int int int)))
(
memory-store
pointer=(local "tuplePointer__0")
layout=(struct (int int int))
- offset=(2)
- value=(local "tupleElement__2__0")
+ offset=(0)
+ value=(local "tupleElement__0__0")
)
- (local-store (local "tupleElement__1__0") (local "c"))
(
memory-store
pointer=(local "tuplePointer__0")
@@ -28,13 +29,12 @@ Instructions:
offset=(1)
value=(local "tupleElement__1__0")
)
- (local-store (local "tupleElement__0__0") (local "b"))
(
memory-store
pointer=(local "tuplePointer__0")
layout=(struct (int int int))
- offset=(0)
- value=(local "tupleElement__0__0")
+ offset=(2)
+ value=(local "tupleElement__2__0")
)
(data-ptr-to-int (local "tuple__0") (local "tuplePointer__0"))
)